package com.pw.lit.service.impl;

import com.pw.lit.bean.Favorite;
import com.pw.lit.bean.FavoriteExample;
import com.pw.lit.mapper.FavoriteMapper;
import com.pw.lit.service.favorite;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class favoriteImpl implements favorite {

    @Autowired
    private FavoriteMapper favoriteMapper;
    @Override
    public int countByExample(FavoriteExample example) {
        return favoriteMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(FavoriteExample example) {
        return favoriteMapper.deleteByExample(example);
    }

    @Override
    public int insert(Favorite record) {
        return favoriteMapper.insert(record);
    }

    @Override
    public int insertSelective(Favorite record) {
        return favoriteMapper.insertSelective(record);
    }

    @Override
    public List<Favorite> selectByExample(FavoriteExample example) {
        return favoriteMapper.selectByExample(example);
    }

    @Override
    public int updateByExampleSelective(Favorite record, FavoriteExample example)
    {
        return favoriteMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(Favorite record, FavoriteExample example) {
        return favoriteMapper.updateByExample(record,example);
    }
}
